package rmiserver;


import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.lang.*;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author JBP
 */
public class ReverseImpl extends UnicastRemoteObject implements Reverse{

    ReverseImpl() throws RemoteException{
        
    }
    @Override
    public String reverse(String s) throws RemoteException {
        StringBuilder monreverse = new StringBuilder(s);
        monreverse.reverse();
        String res = monreverse.toString();
        return res;
    }
    
}
